

        <g:set var="entityName" value="${message(code: 'teacher.label', default: 'Teacher')}" />
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.realname.label" default="Realname" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "realname")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.sex.label" default="Sex" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "sex")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.area.label" default="Area" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "area")}</td>
                            
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.introduction.label" default="Introduction" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "introduction")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.major.label" default="Major" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "major")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.teacherType.label" default="Teacher Type" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "teacherType")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.education.label" default="Education" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "education")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.unit.label" default="Unit" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "unit")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.experience.label" default="Experience" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "experience")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.salary.label" default="Salary" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "salary")}元/课时</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.courses.label" default="Courses" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "courses")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.postion.label" default="Postion" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "postion")}</td>
                            
                        </tr>
                    <g:isLoggedIn>
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.tel.label" default="Tel" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "tel")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.mobile.label" default="Mobile" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "mobile")}</td>
                            
                        </tr>
                    
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.qq.label" default="Qq" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "qq")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.email.label" default="Email" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "email")}</td>
                            
                        </tr>
                    </g:isLoggedIn>
                    <g:isNotLoggedIn>
                        <tr class="prop">
                        <br>
                            <td valign="top" class="name" colspan="2"><center><g:link controller="login" action="index" ><font size="5" color="red" >请登录后查看联系方式</font></g:link></center></td>
                        </tr>
                    </g:isNotLoggedIn>
                    </tbody>
                </table>
                <%/** 
                <g:include controller="leaveWordMgr" action="teacherLeaveWordList" id="${teacherInstance?.id}"/>
                <g:if test="${flash.message}">
                <div class="message">${flash.message}</div>
                </g:if>
                <g:form action="saveToTeacherWord" method="post" controller="leaveWordMgr" name="createLeaveWord">
                    <g:hiddenField name="teacherId" value="${teacherInstance?.id}" />
                    <table>
                        <tbody>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="personname"><g:message code="leaveWord.personname.label" default="留言人" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveWordInstance, field: 'personname', 'errors')}">
                                    <g:textField name="personname" maxlength="100" value="${leaveWordInstance?.personname}" />
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="contact"><g:message code="leaveWord.contact.label" default="联系方式" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveWordInstance, field: 'contact', 'errors')}">
                                    <g:textField name="contact" maxlength="100" value="${leaveWordInstance?.contact}" />
                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="content"><g:message code="leaveWord.content.label" default="内容" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveWordInstance, field: 'username', 'errors')}">
                                    <g:textArea name="content" value="${leaveWordInstance?.content}" />
                                </td>
                            </tr>
                             <tr class="prop">
                                <td valign="top" colspan=2>
                                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                                </td>
                            </tr>
                        </tbody>
                  </table>
                   
             </g:form>
              */%>
            </div>
